package com.gpy.hospital.cms.dao;

import com.gpy.hospital.cms.pojo.Blog;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface BlogMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Blog record);

    int insertSelective(Blog record);

    Blog selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Blog record);

    int updateByPrimaryKey(Blog record);

    List<Blog> getAll(String blogName);

    List<Blog> getRandom();

    List<Blog> getAllByStatus();

    List<Blog> getAllByTitle(String searchWords);
}